'use strict';
let mongoose = require('mongoose');

let schema = new mongoose.Schema({
    name:String,
    workType:{  //工种
        type:Array,
        default:[]
    },
    workCount:{ //对应需要的工人数量
        type:Array,
        default:[]
    },
    province:String,
    city:String,
    area:String,
    companyId: { //企业表对应的ID
        type:String,
        required: true,
        index: {
            unique: false
        }
    },
    description:String, //描述
    addTime:Number,
    orderTime:Number,
    status:{
        type:Number,
        default:0
    }
},{versionKey:false});

schema.statics = {
};

module.exports = schema;